home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gekkan Dennou Club 145
/
Gekkan Dennou Club - 2000.6 Vol. 145 (Japan).7z
/
Gekkan Dennou Club - 2000.6 Vol. 145 (Japan) (Track 1).bin
/
games
/
spassion
/
knowhow.lzh
/
ノウハウ
/
option1.bas
< prev
next >
Wrap
BASIC Source File
|
1993-10-31
|
2KB
|
57 lines
char s
int i
int jx=128,jy=128
/*---------[ オプションヨウ バッファ ]---------------------------
dim char opt_x(255),opt_y(255)
/*---------[ カクシュショキカ ]---------------------------------
scr_init()
for i=0 to 255
opt_x(i)=jx:opt_y(i)=jy
next
/*
/*######################################################
/*# MAIN #
/*######################################################
while -1
/*----------[ ホンタイノ イドウ ]------------------------------
s=stick(1)
if s=9 or s=6 or s=3 then jx=jx+4 and 255
if s=7 or s=4 or s=1 then jx=jx-4 and 255
if s=1 or s=2 or s=3 then jy=jy+4 and 255
if s=7 or s=8 or s=9 then jy=jy-4 and 255
sp_set(0,jx,jy,&H106,3)
/*----------[ オプション ショリ ]-------------------------------
opt_x(0)=jx:opt_y(0)=jy
/* バッファテンソウ
for i=1 to 127
opt_x(128-i)=opt_x(127-i)
opt_y(128-i)=opt_y(127-i)
next
/* オプション ヒョウジ
for i=1 to 15
sp_set(i,opt_x(i*8),opt_y(i*8),&H228,3)
next
/*========================================================
endwhile
end
/*
/*
/*######################################################
/* SCR_INIT()
/*
/* scr_init()
/* ガメンヲ GAMEセンヨウニ ショキカスル。
/*======================================================
func scr_init()
int i
/*-------------------------
screen 0,2,1,1
sp_on(0,127)
for i=0 to 127:sp_set(i,0,0,0,3):next
sp_disp(1)
bg_set(0,0,1):bg_scroll(0,0,0)
bg_set(1,1,1):bg_scroll(1,0,0)
bg_fill(0,0):bg_fill(1,0)
mouse(4):mouse(2)
endfunc